<%
String type = (String)session.getAttribute("type");
if(type != null && type.equals("student"))
{
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<%
String usernameS = (String) session.getAttribute("session_name");
				String idS = (String) session.getAttribute("id");
				String typeS = (String) session.getAttribute("type");

if(usernameS == null || !typeS.equals("student"))
	response.sendRedirect("error.jsp");
%>
<html xmlns="http://www.w3.org/1999/xhtml">

<head>
<meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1" />
<meta http-equiv="Content-Style-Type" content="text/css" />

<title>Graduation Projects</title>

<link rel="stylesheet" href="style.css" type="text/css" media="screen" />
<link rel="STYLESHEET" href="styles/project.css" type="text/css">
<script type="text/javascript" language="javascript" src="js/project.js"></script>

</head>

<body  onLoad = "getTitle()" onClick="document.getElementById('rightMenu').innerHTML = ''">

<div id="container">

	<!-- Start of Page Header -->

	<div id="header_container">
	<div id="page_header">

		<div id="header_menu">

			<jsp:include page="links.jsp"/>

		</div>

		<div id="header_welcome">
			<div id="welcome_text"><object classid="clsid:D27CDB6E-AE6D-11CF-96B8-444553540000" id="obj8" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0" border="0" width="680" height="120">	<param name="movie" value="mainlogo.swf"><param name="quality" value="High"><embed src="mainlogo.swf" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" name="obj8" width="680" height="89" quality="High"></object>
			</div>

		</div>

	</div>
	</div>

	<!-- End of Page Header -->


	<!-- Start of Left Sidebar -->

	<div id="left_sidebar">

		<!-- Start of User Login -->

		<div class="box_container">
		<div id="userlogin">

			<%
			
				if(usernameS != null) {
					%>
					<center><jsp:include page="detail.jsp"/></center>
					<%
				} else {
					%>
					<center><jsp:include page="login.jsp"/></center>
					<%
				}
			%>
		</div>
		</div>

		<!-- End of User Login -->


		<!-- Start of Latest News -->

		<div class="box_container">
		<div id="news">
		<center><img src="images/news_title.gif"></img></center>
		<hr><br>
			<jsp:include page="newsP.jsp"/>
		<div id="nn"></div>

			<div class="clearthis">&nbsp;</div>
		</div>
		</div>

		<!-- End of Latest News -->


	</div>

	<!-- End of Left Sidebar -->


	<!-- Start of Main Content Area -->

	<div id="maincontent_container">
	<div id="maincontent">
		<jsp:include page="project7.jsp"/>
	</div>
	</div>
	<div id="page_footer">
	Style powered by <a href="http://www.freewebsitetemplates.com/">Free Website Templates</a>
	</div>
	<div class="clearthis">&nbsp;</div>
</div>
</body>
</html>
<%
}
else
	response.sendRedirect("index.jsp");
%>